package com.zhang.generateexcel;

import com.zhang.generateexcel.controller.Test;
import com.zhang.generateexcel.util.StringUtil;
import com.zhang.generateexcel.util.TimeUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class GenerateExcelApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(GenerateExcelApplication.class, args);
        Test test = new Test();
        //启动时自动执行当月和上月，打包时放开
//        test.excel(null);
//        test.excel(TimeUtil.getYearMonth(TimeUtil.getPrevMonth()));
    }
}
